<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>银行审批系统</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="../static/i/favicon.png" th:href="@{~/i/favicon.png}">
    <link rel="apple-touch-icon-precomposed" href="../static/i/app-icon72x72@2x.png" th:href="@{~/i/app-icon72x72@2x.png}">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <script src="../static/js/echarts.min.js" type="text/javascript" th:src="@{~/js/echarts.min.js}" ></script>
    <link rel="stylesheet" href="../static/css/amazeui.min.css" type="text/css" th:href="@{~/css/amazeui.min.css}" />
    <link rel="stylesheet" href="../static/css/amazeui.datatables.min.css" type="text/css" th:href="@{~/css/amazeui.datatables.min.css}" />
    <link rel="stylesheet" href="../static/css/app.css" type="text/css" th:href="@{~/css/app.css}">
    <script src="../static/js/jquery.min.js" type="text/javascript" th:src="@{~/js/jquery.min.js}"></script>

</head>

<body data-type="widgets">
<script src="../static/js/theme.js" type="text/javascript" th:src="@{~/js/theme.js}"></script>
    <div class="am-g tpl-g">
        <!-- 头部 -->
        <header>
            <!-- logo -->
            <div class="am-fl tpl-header-logo" style="color: whitesmoke; line-height: 57px;">
                <h3 style="">后台管理系统</h3>
            </div>
            <!-- 右侧内容 -->
            <div class="tpl-header-fluid">
                <!-- 侧边切换 -->
                <div class="am-fl tpl-header-switch-button am-icon-list">
                    <span>

                </span>
                </div>
                <!-- 搜索 -->
                <div class="am-fl tpl-header-search">
                    <form class="tpl-header-search-form" action="javascript:;">
                        <button class="tpl-header-search-btn am-icon-search"></button>
                        <input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
                    </form>
                </div>
                <!-- 其它功能-->
                <div class="am-fr tpl-header-navbar">
                    <ul>
                        <!-- 欢迎语 -->
                        <li class="am-text-sm tpl-header-navbar-welcome">
                            <a href="javascript:;">欢迎你, <span th:text="${session.admin.getUserName()}">admin</span> </a>
                        </li>

                        <!-- 退出 -->
                        <li class="am-text-sm">
                            <a href="index.html" th:href="@{/back/}">
                                <span class="am-icon-sign-out"></span> 退出
                            </a>
                        </li>
                    </ul>
                </div>
            </div>

        </header>
        <!-- 风格切换 -->
        <div class="tpl-skiner">
            <div class="tpl-skiner-toggle am-icon-cog">
            </div>
            <div class="tpl-skiner-content">
                <div class="tpl-skiner-content-title">
                    选择主题
                </div>
                <div class="tpl-skiner-content-bar">
                    <span class="skiner-color skiner-white" data-color="theme-white"></span>
                    <span class="skiner-color skiner-black" data-color="theme-black"></span>
                </div>
            </div>
        </div>
        <!-- 侧边导航栏 -->
        <div class="left-sidebar">
            <!-- 用户信息 -->
            <div class="tpl-sidebar-user-panel">
                <div class="tpl-user-panel-slide-toggleable">
                    <div class="tpl-user-panel-profile-picture">
                        <img src="../static/img/user04.png" alt="" th:src="@{~/img/user04.png}">
                    </div>
                    <span class="user-panel-logged-in-text">
                        <i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
                        <span th:text="${session.admin.getUserName()}">用户</span>
                    </span>
                    <a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
                </div>
            </div>

            <!-- 菜单 -->
            <ul class="sidebar-nav">
                <li class="sidebar-nav-link">
                    <a href="index.html" th:href="@{/back/index}">
                        <i class="am-icon-home sidebar-nav-link-logo"></i> 角色列表
                    </a>
                </li>
                <li class="sidebar-nav-link">
                    <a href="tables.html" class="active" th:href="@{/back/show}">
                        <i class="am-icon-table sidebar-nav-link-logo"></i> 客户列表
                    </a>
                </li>

            </ul>
        </div>



        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">客户列表</div>
                            </div>
                            <div class="widget-body  am-fr">
                                <form method="post" th:action="@{/back/query}">
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                    <div class="am-form-group tpl-table-list-select">
                                        <select data-am-selected="{btnSize: 'sm'}" name="bankArea">
                                            <option value="">区域</option>
                                            <option value="华港区">华港区</option>
                                            <option value="凯旋区">凯旋区</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                                    <div class="am-form-group tpl-table-list-select">
                                        <select data-am-selected="{btnSize: 'sm'}" name="approvalState">
                                            <option value="">审批状态</option>
                                            <option value="1">待审核</option>
                                            <option value="2">待过户</option>
                                            <option value="3">待抵押</option>
                                            <option value="4">待放款</option>
                                            <option value="5">已放款</option>
                                            <option value="6">审核拒绝</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                                    <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                        <input type="text" class="am-form-field " name="salesman" placeholder="请输入业务员名称">
                                        <span class="am-input-group-btn">
                                        <input class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="submit"></input>
                                    </span>
                                    </div>
                                </div>
                                </form>
                                <div class="am-u-sm-12">
                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
                                        <thead>
                                        <tr>
                                            <th>序号</th>
                                            <th>贷款人</th>
                                            <th>业务员</th>
                                            <th>贷款金额</th>
                                            <th>订单状态</th>
                                            <th>区域</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr class="gradeX" th:each="client, state : ${clients}">
                                            <td th:text="${state.index + 1}">1</td>
                                            <td th:text="${client.getClientName()}">张三</td>
                                            <td th:text="${client.getSalesman()}">Lee</td>
                                            <td th:text="${client.getLoanAmount()}">50000</td>
                                            <td>
                                                <span th:if="${client.getApprovalState() == 0}">待办</span>
                                                <span th:if="${client.getApprovalState() == 1}">待审核</span>
                                                <span th:if="${client.getApprovalState() == 2}">待过户</span>
                                                <span th:if="${client.getApprovalState() == 3}">待抵押</span>
                                                <span th:if="${client.getApprovalState() == 4}">待放款</span>
                                                <span th:if="${client.getApprovalState() == 5}">已放款</span>
                                                <span th:if="${client.getApprovalState() == 6}">审核拒绝</span>
                                            </td>
                                            <td th:text="${client.getBankArea()}">华港区</td>
                                            <td>
                                                <a th:href="@{/back/deleteClient1/{id}/{clientId}(id=${id1},clientId=${client.getClientId()})}">删除</a>
                                                <a th:href="@{/back/pdf/{clientId}(clientId=${client.getClientId()})}"><span class="am-icon-save"></span> 导出PDF</a>
                                                <a th:href="@{/back/download/{clientId}(clientId=${client.getClientId()})}"><span class="am-icon-archive"> 下载图片</a>
                                            </td>
                                        </tr>
                                        <!-- more data -->
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


    </div>
    </div>
    <script src="../static/js/amazeui.min.js" type="text/javascript" th:src="@{~/js/amazeui.min.js}"></script>
    <script src="../static/js/amazeui.datatables.min.js" type="text/javascript" th:src="@{~/js/amazeui.datatables.min.js}"></script>
    <script src="../static/js/dataTables.responsive.min.js" type="text/javascript" th:src="@{~/js/dataTables.responsive.min.js}"></script>
    <script src="../static/js/app.js" type="text/javascript" th:src="@{~/js/app.js}"></script>

</body>

</html>